package com.carefree.system.modules.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carefree.system.modules.admin.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 角色
 *
 * @author tengbin
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {

    /**
     * 根据用户id查询对应角色信息
     *
     * @param userId 用户id
     * @return RoleEntity
     */
    List<RoleEntity> selectRolesInfoByUserId(Long userId);
}
